package threadcoreknowledge.createthreads;

/**
 *  同时使用 Runnable和Thread两种实现线程的方式
 * @Author wushaopei
 * @Date 2021/2/24 23:36
 * @Version 1.0
 */
public class BothRunnableThread {

    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("我来自 Runnable");
            }
        }){
          @Override
          public void run(){
              System.out.println("我来自 Thread");
          }
        }.start();
    }
}
